package com.peas.platform.module.icims.contract.initial.controller.vo;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同执行-验收")
public class ContractInitialCheckingVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    private Long contractInitialId;

    @Comment(value = "批次号")
    @ApiModelProperty(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    private String batch;

    // 【合同验收条件表】
    @Comment(value = "合同验收条件表ID")
    @ApiModelProperty(value = "合同验收条件表ID")
    @NotNull(message = "合同验收条件表ID不能为空")
    private Long contractInitialInspectionId;

    @Comment(value = "验收内容")
    @ApiModelProperty(value = "验收内容")
    @Size(max = 1000, message = "验收内容不能超过1000个字符")
    private String content;

    // 【用户表】
    @Comment(value = "验收负责人用户ID")
    @ApiModelProperty(value = "验收负责人用户ID")
    @NotNull(message = "验收负责人用户ID不能为空")
    private Long principalUserId;

    // 【用户表】
    @Comment(value = "监理人用户ID")
    @ApiModelProperty(value = "监理人用户ID")
    private Long supervisorUserId;

    @Comment(value = "验收时间")
    @ApiModelProperty(value = "验收时间")
    private Date checkingTime;

    @Comment(value = "验收状态", enumType = "ContractInitialCheckingState")
    @ApiModelProperty(value = "验收状态", notes = "枚举取值:ContractInitialCheckingState")
    @Size(max = 20, message = "验收状态不能超过20个字符")
    private String state;

    @Comment(value = "验收意见")
    @ApiModelProperty(value = "验收意见")
    @Size(max = 2000, message = "验收意见不能超过2000个字符")
    private String checkingComment;

    // 【附件表】
    @Comment(value = "附件")
    @ApiModelProperty(value = "附件")
    private Long checkingAttachmentId;

    // 1:线上，2:线下
    @Comment(value = "审批方式")
    @ApiModelProperty(value = "审批方式")
    @Size(max = 20, message = "审批方式不能超过20个字符")
    private String approvalType;

    // 非持久化
    private List<ContractInitialCheckingAttachmentVo> attachments;

}
